/**
 * @author sm
 * @time 2023/10/21 PM
 * @description 定义路由和实现路由拦截
 */
import {createRouter,createWebHistory,Router} from 'vue-router';
import routes from './routes';
import interceptor from './interceptor';


const router: Router = createRouter({
    history: createWebHistory(),
    routes:routes
}) 

router.beforeEach(interceptor)
export default router;